﻿using FreeSql.DataAnnotations;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClothingShopping.Data
{
    /// <summary>
    /// 日志记录表
    /// </summary>
    [JsonObject(MemberSerialization.OptIn),Table(DisableSyncStructure= false)]
    public class Log
    {
        /// <summary>
        /// 日志id
        /// </summary>
        [JsonProperty, Column(DbType ="INT",IsIdentity = true, IsPrimary = true)]
        public int log_id {  get; set; }

        /// <summary>
        /// 日志名称
        /// </summary>
        [JsonProperty, Column(DbType = "NVARCHAR(20)")]
        public string? log_name { get; set; }

        /// <summary>
        /// 操作类型
        /// </summary>
        [JsonProperty, Column(DbType = "NVARCHAR(20)")]
        public string? op_type { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [JsonProperty, Column(DbType = "NVARCHAR(500)")]
        public string? content { get; set;}

        /// <summary>
        /// 备注
        /// </summary>
        [JsonProperty, Column(DbType = "NVARCHAR(200)")]
        public string? Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [JsonProperty, Column(DbType = "NVARCHAR(20)")]
        public string? Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [JsonProperty, Column(DbType = "DATETIME")]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [JsonProperty, Column(DbType = "NVARCHAR(20)")]
        public string? Modifier { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [JsonProperty, Column(DbType = "DATETIME")]
        public DateTime? MTime { get; set; }
    }
}
